SC_intersectObject
SYNTAX
return float=SC_intersectObject ( obj, oldx, oldy, oldz, x, y, z )
-objNum: the object you want to check for collision use 0 for all objects
-oldx...z: the start and end points of the ray to check.
returns: the distance to the closest collision point
Replaces dbp built in Intersect Object() command
Will check if the ray starting at oldx#,oldy#,oldz# and ending at
x#,y#,z# collides with the specified object (obj=0 for all).
does not collide with backfaces, will return the distance to the
closest collision point, 0 for no collision
RELATED INFO
Collision Commands Menu
Index